Computer System Organisation

Computer Science – XI · Chapter 3 · Questions and Answers

3.1 Components of a computer system

1. What are the two broad components of a computer system?

Hardware and software. Hardware is the electro-mechanical (physical) parts; software is the collection of programs executed on the computer.

2. Differentiate between system software and application software.

System software interacts directly with the hardware and provides an environment where users can work with friendly interfaces. Examples: Linux, GCC compiler, Python interpreter, device drivers.

Application software helps users perform routine tasks and uses mechanisms provided by the operating system. Examples: accounting software, word processors, browsers, games.

3. Name the five main functional units of a computer.

Input unit, output unit, CPU (control unit, ALU, registers, cache), primary memory and secondary memory (together forming the memory unit).

4. Which of the following are found inside the CPU: Registers, hard disk, arithmetic logic unit, keyboard, RAM?

Registers and the arithmetic logic unit. The hard disk, keyboard and RAM are outside the CPU.

5. What are registers? Why are they limited in number?

Registers are tiny, high-speed memory locations inside the CPU. They hold data, memory addresses, intermediate results and the instructions currently being executed. They are very expensive to build, so their number and capacity are limited.

6. Explain the steps in program execution.
  • Instruction fetch: the control unit brings the next instruction from memory to the CPU.
  • Instruction decode: the decoding logic identifies the action to be performed.
  • Operand fetch: if data is needed, it is read from memory into a register (skipped if no data is needed).
  • Instruction execution: the ALU performs the operation under the control unit's direction. The control unit then fetches the next instruction.

3.2 Hardware components

7. Why is the CPU called the brain of the computer?

It performs all operations, controls system activities, processes information quickly and coordinates tasks.

8. What is the unit for measuring the speed of a processor?

Hertz, usually gigahertz (GHz) for modern processors. It tells how many clock cycles the processor performs per second.

9. Name two processors used in desktops/laptops and two used in smartphones/tablets.

Desktop/laptop: Intel Core i5/i7, AMD Ryzen, Apple M-series. Smartphones/tablets: Apple A-series, Snapdragon, MediaTek.

10. What is heterogeneous computing? Explain GPU, TPU and NPU.

Heterogeneous computing means using dedicated processors for specific tasks alongside the general-purpose CPU.

  • GPU: has hundreds or thousands of simple processors for parallel calculations; used for graphics and training AI models.
  • TPU: built to handle the mathematical operations of neural networks, more efficient for AI than a CPU or standard GPU.
  • NPU: an accelerator in smartphones and laptops that runs AI tasks efficiently on the device.
11. What is a motherboard? Mention at least three essential components integrated into it.

A motherboard is a large Printed Circuit Board (PCB) to which all major components are connected. It also provides expansion slots. Essential parts: CPU socket, memory (RAM) slots, buses, system clock, BIOS chip, and connectors for peripherals.

12. What is the role of the system clock and buses?

Buses are electronic pathways that carry communication between the CPU, memory and peripherals. The system clock generates precise timing signals that synchronise all operations.

13. What are ports? Describe the purpose of the following: USB, HDMI, Ethernet, Thunderbolt, VGA, DisplayPort.

Ports are physical connectors on the exterior of a computer that connect peripherals for data transfer, power supply or signal transmission.

PortPurpose
USBMost widely used; keyboards, mice, external drives, printers, smartphones. Latest type is USB Type-C.
HDMIConnects monitors, TVs, projectors; carries both video and audio in one cable.
Ethernet/LANConnects to a wired local area network using an RJ45 connector.
ThunderboltHigh-speed interface (Intel with Apple) for fast external storage and monitors.
VGATransmits analog video to a monitor or projector.
DisplayPortConnects a video source to a display; high bandwidth, high resolution and refresh rates, multiple monitors.
14. What are expansion slots? Explain PCIe, M.2 and AGP.

Expansion slots are sockets on the motherboard for installing expansion cards that add or enhance functions in desktop or server computers.

  • PCIe (Peripheral Component Interconnect Express): current standard for high-speed communication with expansion cards.
  • M.2: small modern slot used mainly for high-speed SSDs or wireless network cards.
  • AGP (Accelerated Graphics Port): older legacy slot for graphics cards, replaced by PCIe.

Memory

15. Differentiate between volatile and non-volatile memory with one example each.

Volatile memory needs continuous power; all content is lost when power is removed. Example: RAM (also cache and registers).

Non-volatile memory keeps its data when power is off. Example: ROM, hard disk.

16. Complete the memory unit table: bit, nibble, byte, KB, MB, GB, TB.

1 nibble = 4 bits; 1 byte = 8 bits; 1 KB = 1024 bytes; 1 MB = 1024 KB; 1 GB = 1024 MB; 1 TB = 1024 GB. Beyond that: PB, EB, ZB, YB, each 1024 times the previous.

17. Distinguish between RAM and ROM.
RAMROM
VolatileNon-volatile
Read and writeGenerally read only; contents not easily altered
Holds OS, running programs and data being processedHolds start-up instructions such as BIOS
FasterSlower than RAM
Speed measured in MHzTypes: PROM, EPROM, EEPROM
18. Is it possible for a computer to execute a program without it being loaded into RAM? Justify.

No. Data and instructions to be processed by the CPU must be placed in RAM, because the CPU accesses primary memory directly. Secondary storage is too slow and is not directly accessible, so the loader copies the program into RAM before execution.

19. Explain the role of BIOS in ROM of a computer.

BIOS is a small program stored in ROM. When the computer is switched on, it performs the Power-On Self-Test (POST) to check that memory, keyboard and display work properly. If all is well, it starts loading the operating system into RAM.

20. Differentiate BIOS and UEFI.

Both initialise hardware and load the operating system. UEFI is the modern replacement: it offers faster booting, better security (Secure Boot), support for larger storage devices, and a more flexible, user-friendly environment. Traditional BIOS lacks these advantages.

21. Distinguish between PROM, EPROM and EEPROM.

PROM: manufactured blank, programmed only once. EPROM: erased with ultraviolet light and rewritten. EEPROM: erased electrically and reprogrammed many times.

22. Explain how cache memory improves the performance of a computer.

The CPU is much faster than RAM and would otherwise wait for data. Cache is a small, very fast memory that stores frequently accessed data, instructions and intermediate results. The CPU first checks the cache; if the data is found (a cache hit) it is read immediately, which is far quicker than accessing RAM. This reduces the delay between the CPU and main memory.

23. Describe the three levels of cache.

L1: closest to the CPU, extremely fast but small. L2: larger than L1, slightly slower, still faster than main memory. L3: shared among cores in multi-core processors, larger and slower than L2.

24. Arrange RAM, hard disk, cache and registers in order of speed.

Fastest to slowest: Registers → Cache → RAM → Hard disk.

25. What is the need of secondary memory? How does it differ from primary memory?

RAM contents are lost when power is off, so secondary memory provides permanent storage. It has much larger capacity at lower cost and is portable (pen drives, external disks).

Primary memory is directly accessed by the CPU, is faster, but has limited capacity and (for RAM) is volatile. Secondary memory is slower, larger and non-volatile.

26. Explain magnetic, optical and solid state storage devices.
TypeHow it worksExamples
MagneticA head magnetises areas of a coated surface to represent 0 and 1. Mechanical movement makes it slower, but capacity is large and cost low.HDD, magnetic tape
OpticalA laser creates and reads pits and lands on a reflective disk. Portable and inexpensive, limited capacity, usage declining.CD, DVD, Blu-ray
Solid stateUses flash memory (a type of EEPROM); no moving parts, so faster and more durable.SSD, USB flash drive
27. What is the purpose of the NVMe protocol?

NVMe is a communication protocol designed for high-speed SSDs that use the PCIe interface. Older SSDs used SATA, created for slower hard disks, which prevented them from reaching full speed. NVMe lets the computer and SSD communicate directly through PCIe lanes and handle thousands of parallel requests, giving faster start-up, application loading and heavy tasks like gaming and video editing.

28. What is cloud storage? Give examples.

Cloud storage is a modern form of secondary storage where data is stored on remote servers and accessed over the Internet. It is scalable, supports backup and recovery, and uses encryption and access control. Examples: Google Drive, OneDrive, Dropbox, Apple iCloud.

Input and output devices

29. List four common input devices and explain their primary functions.
  • Keyboard: enters text and commands.
  • Mouse: points at and selects items on the screen.
  • Scanner: converts physical documents into digital form.
  • Microphone: captures sound.

Others: touchscreen, joystick, webcam, biometric sensor, barcode reader, OMR, MICR.

30. What do OMR and MICR read?

OMR reads marked answer sheets; MICR processes bank cheques.

31. What are the different types of visual display units?

LCD monitors; TFT monitors (LCD with improved image quality); LED monitors (energy-efficient flat panels); OLED monitors (better contrast, thinner designs, used in high-end computers, laptops and smartphones); and projectors, which project images onto a large screen.

32. Name the common types of printers and where they are used.

Dot matrix printers (billing counters, invoices, multipart forms), laser printers, inkjet printers and thermal printers (homes, offices, shops, hospitals, industries).

33. Write short notes on plotters, 3D printers and speakers.

Plotters produce large, high-precision drawings (drum and flatbed types) for engineering, architecture and map making. 3D printers create physical objects from digital models using plastic, resin or metal. Speakers are audio output devices.

3.3 Software

34. What are the major components of system software?

Operating system, language processors, linkers and loaders, and utility software.

35. What is an operating system? Give examples.

An OS is a set of programs that controls the hardware and provides services to application software, programmers and users. It is the first program loaded into memory at start-up with the help of BIOS. Examples: DOS, Windows, Unix, Linux, macOS, Android, iOS, HarmonyOS.

36. Explain the functions of an operating system.
  • Process management: runs multiple processes by switching the CPU between them quickly; scheduling decides which process gets the CPU and for how long.
  • Memory management: allocates and deallocates RAM and prevents one process from interfering with another's memory.
  • File management: creates and maintains the file system; creates, reads, writes, renames, copies, moves and deletes files; manages permissions.
  • Device management: controls I/O devices through device drivers and decides which process may use a device.
37. What is a device driver?

Special software through which the OS communicates with a hardware device. It converts OS commands into device-specific commands.

38. How do compilers and interpreters differ in translating high level programs? Give one advantage of each over the other.
CompilerInterpreter
Scans the entire program in one run and generates an object fileTranslates and executes line by line
Lists all syntax errors with line numbers at the endReports an error and stops immediately at the faulty line
Examples: C, C++, Pascal, GoExamples: Python, JavaScript, BASIC

Advantage of a compiler: the compiled stand-alone machine code runs faster. Advantage of an interpreter: errors are reported line by line, so debugging is easier and execution starts without waiting for full compilation.

39. What is an assembler? Why is it machine dependent?

An assembler translates assembly language (mnemonics like ADD, MOV) into machine code. Instruction codes and register names vary for each CPU type, so the assembler must be customised for a specific CPU architecture.

40. What is the reason for using intermediate bytecode? Is there any disadvantage?

Source code is first compiled to bytecode, which a Virtual Machine (VM) runs, using a JIT compiler to convert frequently used parts to native code. This makes the same bytecode portable: it runs on any machine that has the VM.

Disadvantage: an extra layer (the VM) is required, and execution is generally slower than directly compiled native code, at least initially.

41. Differentiate between the roles of the linker and the loader.

The linker runs after the compiler/assembler. It merges separately compiled object files with required library code to produce one complete executable program.

The loader is part of the OS. It allocates space in RAM, copies the executable's instructions and data from disk into memory, and transfers control to the program's starting instruction.

42. List and explain any four utility software tools.
  • File management tools: create, copy, delete, rename, move, search and organise files (Windows File Explorer, macOS Finder).
  • Antivirus software: detects, prevents and removes malware such as viruses, worms, trojans, spyware and ransomware.
  • Backup tools: periodically duplicate data so it can be recovered after disk failure, corruption or deletion.
  • Disk cleaner: finds temporary files, cache and junk, and long-unused files, and offers to delete them to free space.
  • Compression tools: zip files to occupy less space and unzip them later (WinZip, WinRAR, 7-Zip).
43. Classify as system, application or utility software: operating system, word processor, anti-virus, disk-defragmentation, spreadsheet, compiler.
SoftwareCategory
Operating systemSystem software
Word processing softwareApplication software
Anti-virus softwareUtility software
Disk-defragmentation softwareUtility software
Spreadsheet softwareApplication software
CompilerSystem software (language processor)
44. What are the two types of application software?

General purpose: common everyday tasks such as word processing, presentations, spreadsheets, databases. Customised: developed for specific needs, such as inventory, payroll, school management, hotel reservation or weather forecasting software.

3.4 Phases in programming

45. Place the phases in order: coding, problem specification, debugging, algorithm design, execution and testing.

Problem specification → Algorithm design → Coding → (Translation) → Debugging → Execution and testing → (Documentation).

46. What three things are identified in problem specification?

The input (data available), the process (operations needed to transform the data) and the expected output.

47. What are algorithms and flowcharts?

An algorithm is a structured, step-by-step description of how to solve a problem, usually written in natural language. A flowchart is a visual, diagrammatic representation of the algorithm. Together they act as the blueprint of code.

48. Explain the three types of programming errors.
  • Syntax error: rules of the language are violated; detected automatically by the compiler/interpreter.
  • Logical error: improper program logic; the program runs but gives wrong output. Needs careful analysis by the programmer.
  • Run-time error: occurs during execution, causing unexpected termination, e.g. division by zero or opening a non-existent file.
49. Why is testing important? What is documentation?

Testing runs the program with varied input data to verify it consistently gives accurate results and meets the original requirements. Documentation describes the program: internal (comments, technical details) and external (user manuals and instructions).

3.5 Algorithmic problem solving

50. Name the main types of instructions used in algorithms.

Start and Stop, Input (Read/Accept), Process, Assignment, Output (Print/Write), Conditional (If / Else / End of If) and Repetition (Repeat / While).

51. Match flowchart symbols to their purposes.
SymbolUse
Ellipse (terminal)Start and Stop
ParallelogramInput / Output
RectangleProcess / Assignment
RhombusDecision
ArrowsFlow lines
CircleConnector

So: (a) reading a variable → parallelogram; (b) assignment a = 3 → rectangle; (c) testing whether a > 0 → rhombus.

52. Write an algorithm and describe the flowchart to find the area of a circle.

Algorithm:

Step 1: Start
Step 2: Input R
Step 3: AREA = 3.14 × R × R
Step 4: Print AREA
Step 5: Stop

Flowchart: Start (ellipse) → Input R (parallelogram) → AREA = 3.14 × R × R (rectangle) → Print AREA (parallelogram) → Stop (ellipse), joined by arrows.

53. Write an algorithm and flowchart to find the smallest of three numbers.

Algorithm:

Step 1: Start
Step 2: Input A, B, C
Step 3: If (A < B) Then go to Step 4, else go to Step 7
Step 4: If (A < C) Then SMALL = A, else SMALL = C
Step 5: Go to Step 9
Step 7: If (B < C) Then SMALL = B, else SMALL = C
Step 9: Print SMALL
Step 10: Stop

Flowchart: Start → Input A, B, C → decision A < B?. On True, a second decision A < C? gives SMALL = A (True) or SMALL = C (False). On False, a decision B < C? gives SMALL = B (True) or SMALL = C (False). All paths join at Print SMALL → Stop.

54. Find the greater of two numbers (textbook Problem 2). Explain the algorithm.

Step 1: Start
Step 2: Input N1, N2
Step 3: If (N1 > N2) Then
Step 4:   Print N1
Step 5: Else
Step 6:   Print N2
Step 7: End of If
Step 8: Stop

If the condition is true, the statements between If and Else run and the Else part is skipped; if false, the Else part runs instead.